﻿@model QLMB.ViewModels.FlightInfo
           
@{
    ViewBag.Title = "ListFlightNow";
}
@using MvcContrib.UI.Grid
@using MvcContrib.UI.Grid.ActionSyntax


<h2>ListFlightNow</h2>

<script type="text/javascript" charset="utf-8">
    $(document).ready(function () {
        $('#example').dataTable();
    });
</script>

<style>
#example { width: 100%; }
#container { width: 600px; }
</style>

<h3>@Html.LabelFor(x=>x.dschuyenbay)</h3>
<fieldset>
<div id = "container">
@{
    @Html.Grid(Model.dschuyenbay).Columns(column =>
    {
        column.For(c => c.MaCB);
        column.For(c => c.NgayDi).ToString();
        column.For(c => c.NgayDen).ToString();
        column.For(c => c.MaMB);
        column.For(c => c.TongSoGheDaDat);
        column.For(c => c.TrangThaiCB);
        column.For(c => c.MaDuongBay);
        column.For(c => @Html.ActionLink("View", "ViewFlight", c)).Named("View detail").Encode(false);
    }).Attributes(id => "example");
}

</div>

<br />
@Html.ActionLink("Create new Flight","GetRoute","Router")
</fieldset>